import unittest
from HTMLTestRunner import HTMLTestRunner
suite = unittest.TestLoader().discover(".", "my*.py")
file = open("report.html", "wb")
runner = HTMLTestRunner(stream=file, title="我的第一个HTML测试报告")
runner.run(suite)
file.close()

